package com.xjy.service;

import com.xjy.pojo.Cart;
import com.xjy.pojo.User;
import com.xjy.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface userService {
    //获取全部用户
    List<User> getUsers();
    //通过用户名获取用户信息
    User getUserByName(String name);
    //通过用户id获取用户信息
    User getUserById(int id);

    //注册
    int userRegister(User user);

    //修改
    int userUpdate(User user);

    //删除
    int userDelete(int uid);

    //分页查找
    List<User> findAllUsersByPage(Integer page, Integer size);


    UserInfo getUserInfo(int uid);
}
